﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class HotNews_hotnews : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            List<CQFY.Model.hotnews> newsList = CQFY.BLL.hotnews.GetAllHotNews();
            List<CQFY.Model.notices> noticesList = CQFY.BLL.notices.GetAllNotices();

            newsRepeater.DataSource = newsList;
            newsRepeater.DataBind();
            noticesRepeater.DataSource = noticesList;
            noticesRepeater.DataBind();
        }
    }
}